package net.sunzc.base.wxpay1;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.tencent.mm.sdk.openapi.IWXAPI;
import com.tencent.mm.sdk.openapi.WXAPIFactory;
import net.sunzc.base.ContantsPool;

public class AppRegister extends BroadcastReceiver implements ContantsPool {

    @Override
    public void onReceive(Context context, Intent intent) {
        final IWXAPI api = WXAPIFactory.createWXAPI(context, null);
        api.registerApp(WX_PAY_APP_ID);
    }
}
